/*
 * @Descripttion:
 * @version:
 * @Author: caiailing
 * @Date: 2023-04-03 14:50:28
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-04-04 17:11:18
 */
const TokenId = 'TOKEN'
const UserId = 'USERID'
const getToken = () => {
  return uni.getStorageSync(TokenId)
}
const setToken = (value) => {
  uni.setStorageSync(TokenId, value)
}
const clearToken = () => {
  uni.removeStorage({ key: TokenId })
}

const getUserId = () => {
  return uni.getStorageSync(UserId)
}
const setUserId = (value) => {
  uni.setStorageSync(UserId, value)
}

export { getToken, setToken, getUserId, setUserId, clearToken }
